home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / sendmail / ease-3.5 / test / args next >
Encoding:
Text File  |  1991-02-26  |  507 b   |  21 lines

  1. #!/bin/sh
  2. #
  3. # little shell script to snarf it's arguments and stdin and put them
  4. # in a log file. this way you can see what is being given to the various
  5. # mailers and also what is being done to addresses.
  6. # it's a real hack, but it works for me
  7. #
  8. #            Simon Kenyon, The NSC, Dublin, IRELAND. 24th Nov 86
  9. #
  10. echo '-------------'`date`'------------------' >>/tmp/log
  11. echo -n "Command line: " >>/tmp/log
  12. for i in "$@"
  13. do
  14. echo -n "$i " >>/tmp/log
  15. done
  16. echo >>/tmp/log
  17. while read foo
  18. do
  19. echo $foo >>/tmp/log
  20. done
  21.